<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of login
 *
 * @author Adelson
 */
class Login extends Loadview {

    public function __construct() {
        parent::__construct();
        //$this->index(); //exibe o arquivo(view) login.tpl
    }

    public function index() {
        //define qual pasta da view esta o arquivo tpl
        //mais info deste metodo http://www.smarty.net/docs/en/api.add.template.dir.tpl
        $this->addTemplateDir(str_replace("\\", "/", BASEPATH . "views/login/"), 'login');
        $this->loadView("file:[login]login.tpl", true);
    }

}
